<?php

class UserComment {
	
	/**
	 * @var integer
	 */
	private $commentId;
	private $userId;
	private $postId;
	
	/**
	 * @var string
	 */
	private $username;
	private $comment;
	private $dateString;
	
	/**
	 * @param integer $commentId
	 * @param integer $userId
	 * @param integer $postId
	 * @param string $username
	 * @param string $comment
	 * @param string $dateString
	 */
	public function __construct($commentId, $userId, $postId, $username, $comment, $dateString) {
		$this->commentId = $commentId + 0;
		$this->userId = $userId + 0;
		$this->postId = $postId + 0;
		$this->username = $username;
		$this->comment = $comment;
		$this->dateString = $dateString;
	}
	
	/**
	 * Set functions
	 */
	public function setCommentId($int) {
		$this->commentId = $int + 0;
	}
	
	public function setUserId($int) {
		$this->userId = $int + 0;
	}
	
	public function setPostId($int) {
		$this->postId = $int + 0;
	}
	
	public function setUsername($str) {
		$this->username = $str;
	}
	
	public function setComment($str) {
		$this->comment = $str;
	}
	
	public function setDateString($str) {
		$this->dateString = $str;
	}
	
	/**
	 * Get functions
	 */
	public function getCommentId() {
		return $this->commentId;
	}
	
	public function getUserId() {
		return $this->userId;
	}
	
	public function getPostId() {
		return $this->postId;
	}
	
	public function getUsername() {
		return $this->username;
	}
	
	public function getComment() {
		return $this->comment;
	}
	
	public function getDateString() {
		return $this->dateString;
	}
}
